package com.wlw.eye.ui.fragment

import android.graphics.Typeface
import com.wlw.eye.R
import com.wlw.eye.ui.CacheActivity
import com.wlw.eye.ui.WatchActivity
import com.wlw.eye.utils.newIntent
import kotlinx.android.synthetic.main.fragment_mine.*

class MineFragment : BaseFragment() {
    override fun getLayoutResources(): Int = R.layout.fragment_mine

    override fun initView() {
        tv_advise.setOnClickListener {
            activity?.newIntent<WatchActivity>()
        }
        tv_watch.setOnClickListener {
            activity?.newIntent<WatchActivity>()
        }
        tv_save.setOnClickListener {
            activity?.newIntent<CacheActivity>()
        }
        var typeface = Typeface.createFromAsset(context?.assets, "fonts/FZLanTingHeiS-DB1-GB-Regular.TTF")
        tv_advise.typeface = typeface
        tv_watch.typeface = typeface
        tv_save.typeface = typeface
    }
}